<?php
	function user_status($status){
		switch ($status) {
			case 0:
			return '<span class="badge badge-success">正常</span>';
				break;
			case -1:
			return '<span class="badge badge-warning">禁用</span>';
				break;
			
			default:
				break;
		}
	}
		function product_status($status){
		switch ($status) {
			case 0:
			return '<span class="badge badge-warning">下架</span>';
				break;
			case 1:
			return '<span class="badge badge-success">上架</span>';
				break;
			
			default:
				break;
		}
	}
?>